from ipmsg_resource import *
IPMSG_VERSION = 0x0001
IPMSG_NEW_VERSION = 0x0003
IPMSG_DEFAULT_PORT = 0x0979
IPMSG_NOOPERATION = 0x00000000
IPMSG_BR_ENTRY = 0x00000001
IPMSG_BR_EXIT = 0x00000002
IPMSG_ANSENTRY = 0x00000003
IPMSG_BR_ABSENCE = 0x00000004
IPMSG_BR_NOTIFY = IPMSG_BR_ABSENCE
IPMSG_BR_ISGETLIST = 0x00000010
IPMSG_OKGETLIST = 0x00000011
IPMSG_GETLIST = 0x00000012
IPMSG_ANSLIST = 0x00000013
IPMSG_ANSLIST_DICT = 0x00000014
IPMSG_BR_ISGETLIST2 = 0x00000018
IPMSG_SENDMSG = 0x00000020
IPMSG_RECVMSG = 0x00000021
IPMSG_READMSG = 0x00000030
IPMSG_DELMSG = 0x00000031
IPMSG_ANSREADMSG = 0x00000032
IPMSG_GETINFO = 0x00000040
IPMSG_SENDINFO = 0x00000041
IPMSG_GETABSENCEINFO = 0x00000050
IPMSG_SENDABSENCEINFO = 0x00000051
IPMSG_GETFILEDATA = 0x00000060
IPMSG_RELEASEFILES = 0x00000061
IPMSG_GETDIRFILES = 0x00000062
IPMSG_DIRFILES_AUTH = 0x00000063
IPMSG_DIRFILES_AUTHRET = 0x00000064
IPMSG_GETPUBKEY = 0x00000072
IPMSG_ANSPUBKEY = 0x00000073
IPMSG_AGENT_REQ = 0x000000a0
IPMSG_AGENT_ANSREQ = 0x000000a1
IPMSG_AGENT_PACKET = 0x000000a2
IPMSG_AGENT_PROXYREQ = 0x000000a3
IPMSG_DIR_POLL = 0x000000b0
IPMSG_DIR_POLLAGENT = 0x000000b1
IPMSG_DIR_BROADCAST = 0x000000b2
IPMSG_DIR_ANSBROAD = 0x000000b3
IPMSG_DIR_PACKET = 0x000000b4
IPMSG_DIR_REQUEST = 0x000000b5
IPMSG_DIR_AGENTPACKET = 0x000000b6
IPMSG_DIR_EVBROAD = 0x000000b7
IPMSG_DIR_AGENTREJECT = 0x000000b8
IPMSG_ABSENCEOPT = 0x00000100
IPMSG_SERVEROPT = 0x00000200
IPMSG_DIALUPOPT = 0x00010000
IPMSG_FILEATTACHOPT = 0x00200000
IPMSG_ENCRYPTOPT = 0x00400000
IPMSG_UTF8OPT = 0x00800000
IPMSG_CAPUTF8OPT = 0x01000000
IPMSG_ENCEXTMSGOPT = 0x04000000
IPMSG_CLIPBOARDOPT = 0x08000000
IPMSG_CAPFILEENC_OBSLT = 0x00001000
IPMSG_CAPFILEENCOPT = 0x00040000
IPMSG_CAPIPDICTOPT = 0x02000000
IPMSG_DIR_MASTER = 0x10000000
IPMSG_FLAG_RESV1 = 0x20000000
IPMSG_FLAG_RESV2 = 0x40000000
IPMSG_SENDCHECKOPT = 0x00000100
IPMSG_SECRETOPT = 0x00000200
IPMSG_BROADCASTOPT = 0x00000400
IPMSG_MULTICASTOPT = 0x00000800
IPMSG_AUTORETOPT = 0x00002000
IPMSG_RETRYOPT = 0x00004000
IPMSG_PASSWORDOPT = 0x00008000
IPMSG_NOLOGOPT = 0x00020000
IPMSG_NOADDLISTOPT = 0x00080000
IPMSG_READCHECKOPT = 0x00100000
IPMSG_ENCFILE_OBSLT = 0x00000400
IPMSG_ENCFILEOPT = 0x00000800
IPMSG_NEWMULTI_OBSLT = 0x00040000
IPMSG_RSA_1024 = 0x00000002
IPMSG_RSA_2048 = 0x00000004
IPMSG_RSA_4096 = 0x00000008
IPMSG_BLOWFISH_128 = 0x00020000
IPMSG_AES_256 = 0x00100000
IPMSG_PACKETNO_IV = 0x00800000
IPMSG_IPDICT_CTR = 0x00400000
IPMSG_ENCODE_BASE64 = 0x01000000
IPMSG_NOENC_FILEBODY = 0x04000000
IPMSG_SIGN_SHA1 = 0x20000000
IPMSG_SIGN_SHA256 = 0x40000000
IPMSG_RSA_512OBSOLETE = 0x00000001
IPMSG_RC2_40OLD = 0x00000010
IPMSG_RC2_128OLD = 0x00000040
IPMSG_BLOWFISH_128OLD = 0x00000400
IPMSG_RC2_40OBSOLETE = 0x00001000
IPMSG_RC2_128OBSOLETE = 0x00004000
IPMSG_RC2_256OBSOLETE = 0x00008000
IPMSG_BLOWFISH_256OBSOL = 0x00040000
IPMSG_AES_128OBSOLETE = 0x00080000
IPMSG_SIGN_MD5OBSOLETE = 0x10000000
IPMSG_UNAMEEXTOPT_OBSLT = 0x02000000
IPMSG_FILE_REGULAR = 0x00000001
IPMSG_FILE_DIR = 0x00000002
IPMSG_FILE_RETPARENT = 0x00000003
IPMSG_FILE_SYMLINK = 0x00000004
IPMSG_FILE_CDEV = 0x00000005
IPMSG_FILE_BDEV = 0x00000006
IPMSG_FILE_FIFO = 0x00000007
IPMSG_FILE_RESFORK = 0x00000010
IPMSG_FILE_CLIPBOARD = 0x00000020
IPMSG_FILE_RONLYOPT = 0x00000100
IPMSG_FILE_HIDDENOPT = 0x00001000
IPMSG_FILE_EXHIDDENOPT = 0x00002000
IPMSG_FILE_ARCHIVEOPT = 0x00004000
IPMSG_FILE_SYSTEMOPT = 0x00008000
IPMSG_FILE_UID = 0x00000001
IPMSG_FILE_USERNAME = 0x00000002
IPMSG_FILE_GID = 0x00000003
IPMSG_FILE_GROUPNAME = 0x00000004
IPMSG_FILE_CLIPBOARDPOS = 0x00000008
IPMSG_FILE_PERM = 0x00000010
IPMSG_FILE_MAJORNO = 0x00000011
IPMSG_FILE_MINORNO = 0x00000012
IPMSG_FILE_CTIME = 0x00000013
IPMSG_FILE_MTIME = 0x00000014
IPMSG_FILE_ATIME = 0x00000015
IPMSG_FILE_CREATETIME = 0x00000016
IPMSG_FILE_CREATOR = 0x00000020
IPMSG_FILE_FILETYPE = 0x00000021
IPMSG_FILE_FINDERINFO = 0x00000022
IPMSG_FILE_ACL = 0x00000030
IPMSG_FILE_ALIASFNAME = 0x00000040
FILELIST_SEPARATOR = '\a'
HOSTLIST_SEPARATOR = '\a'
HOSTLIST_SEPARATORS = '\a'
HOSTLIST_NEW_SEPARATOR = '\f'
HOSTLIST_DUMMY = '\b'
IPMSG_DEFAULT_MULTICAST_ADDR6 = 'ff15::979'
LINK_MULTICAST_ADDR6 = 'ff02::1'
IPMSG_LIMITED_BROADCAST = '255.255.255.255'
# IPMSG_VER_WIN_TYPE = IPMSG_VER_WIN64_TYPE
# IPMSG_VER_WIN_TYPE = IPMSG_VER_WIN32_TYPE
IPMSG_VER_WIN32_TYPE = 0x00010001
IPMSG_VER_WIN64_TYPE = 0x00010002
IPMSG_VER_MAC_TYPE = 0x00020000
IPMSG_VER_IOS_TYPE = 0x00030000
IPMSG_VER_ANDROID_TYPE = 0x00040000 
IPMSG_VER_LINUX_TYPE = 0x00050000
IPMSG_VER_KEY = 'VER'
IPMSG_PKTNO_KEY = 'PKT'
IPMSG_DATE_KEY = 'DATE'
IPMSG_UID_KEY = 'UID'
IPMSG_HOST_KEY = 'HID'
IPMSG_NICK_KEY = 'NCK'
IPMSG_NICKORG_KEY = 'NCKO'
IPMSG_GROUP_KEY = 'GRP'
IPMSG_STAT_KEY = 'STAT'
IPMSG_EXSTAT_KEY = 'EXST'
IPMSG_CMD_KEY = 'CMD'
IPMSG_FLAGS_KEY = 'FLG'
IPMSG_CLIVER_KEY = 'CVER'
IPMSG_BODY_KEY = 'BODY'
IPMSG_REPLYPKT_KEY = 'RPN'
IPMSG_TOLIST_KEY = 'TLST'
IPMSG_FROM_KEY = 'FROM'
IPMSG_HOSTLIST_KEY = 'HLST'
IPMSG_IPADDR_KEY = 'IPAD'
IPMSG_PORT_KEY = 'PORT'
IPMSG_POLL_KEY = 'POLL'
IPMSG_MASTER_KEY = 'MST'
IPMSG_ENCFLAG_KEY = 'EF'
IPMSG_ENCIV_KEY = 'EI'
IPMSG_ENCKEY_KEY = 'EK'
IPMSG_ENCBODY_KEY = 'EB'
IPMSG_PUB_E_KEY = 'PUBE'
IPMSG_PUB_N_KEY = 'PUBN'
IPMSG_ENCCAPA_KEY = 'EC'
IPMSG_SIGN_KEY = 'SIGN'
IPMSG_FILE_KEY = 'FILE'
IPMSG_FID_KEY = 'FI'
IPMSG_FNAME_KEY = 'FN'
IPMSG_FSIZE_KEY = 'FS'
IPMSG_MTIME_KEY = 'MT'
IPMSG_FATTR_KEY = 'FA'
IPMSG_CLIPPOS_KEY = 'CP'
IPMSG_START_KEY = 'START'
IPMSG_TOTAL_KEY = 'TOTAL'
IPMSG_NUM_KEY = 'NUM'
IPMSG_DIRBROAD_KEY = 'DRB'
IPMSG_TARGADDR_KEY = 'TADR'
IPMSG_NADDR_KEY = 'NADR'
IPMSG_NADDRS_KEY = 'NADRS'
IPMSG_ADDR_KEY = 'ADR'
IPMSG_MASK_KEY = 'MASK'
IPMSG_WRAPPED_KEY = 'WAPD'
IPMSG_UPTIME_KEY = 'UPT'
IPMSG_AGENTSEC_KEY = 'AGS'
IPMSG_ACTIVE_KEY = 'ACT'
IPMSG_SVRADDR_KEY = 'SVADR'
IPMSG_AGENT_KEY = 'AGNT'
IPMSG_DIRECT_KEY = 'DRCT'
IPMSG_ABSTITLE_KEY = 'ABST'
IPMSG_ABSMODE_KEY = 'ABSMD'
IPMSG_FILELIST_KEY = 'FLS'
IPMSG_ERRINFO_KEY = 'EINF'
